export function Wait<T = null>(time: number = 1000):Promise<T> {
    return new Promise<T>(resolve => {
        setTimeout(() => {
            // @ts-ignore
            resolve(null);
        }, time)
    });
}